Re: [SQL] case-insensitive SORT BY?

Поиск
Список
Период
Сортировка
От lynch@lscorp.com (Richard Lynch)
Тема Re: [SQL] case-insensitive SORT BY?
Дата
Msg-id v02140b5fb22d7ff8816a@[207.152.64.133]
обсуждение исходный текст
Ответы Re: [SQL] case-insensitive SORT BY?  (Chris Johnson <cmj@inline-design.com>)
Список pgsql-sql
Cheat.  Get the name back, *AND* a second "field" with the name in upper
case, and then sort by that upper-cased name.  EG:

"select name, upper(name) as key where name like '%clinton%' sort by key"

At 3:53 PM 9/22/98, Patrick Giagnocavo wrote:
>I am trying to ensure that when I do a SORT BY I get back the results in
>normal sorted order instead of case-sensitive order.  The WHERE clause
>contains a LIKE '%..%' so I cannot use UPPER here in a way that does
>what I want.
>
>e.g. , given
>
>A, B, b, a
>
>as data, the normal SORT BY behavior returns
>
>a
>b
>A
>B
>
>How do I make it return
>
>a
>A
>b
>B
>
>instead?

--
--
-- "TANSTAAFL" Rich lynch@lscorp.com



В списке pgsql-sql по дате отправления:

Предыдущее
От: Eric McKeown
Дата:
Сообщение: RE: [SQL] To create the query for a select where one is NOT in th e other
Следующее
От: "Jackson, DeJuan"
Дата:
Сообщение: RE: [SQL] To create the query for a select where one is NOT in th e other